home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 17170 < prev    next >
Encoding:
Text File  |  1996-08-05  |  710 b   |  33 lines

  1. Path: tribune.usask.ca!eric
  2. From: eric@cs.usask.ca (Eric Neufeld)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: US-MA-Boston:  C++ (2 years)
  5. Date: 13 Apr 1996 22:54:44 GMT
  6. Organization: University of Saskatchewan, Saskatoon, Canada
  7. Message-ID: <4kpbbk$jt@tribune.usask.ca>
  8. References: <316DB4BD.7533@precisionSystems.com>
  9. NNTP-Posting-Host: skorpio3.usask.ca
  10. Originator: eric@skorpio3.usask.ca
  11.  
  12.  
  13. Trying to use templates that pass char string arguments in BC++4.0
  14.  
  15. eg.
  16.  
  17. template<class T, char *S>
  18. class linklist {
  19.     ...
  20.     void msg() { cout << S << endl; }
  21. };
  22.  
  23. void main{}
  24. {
  25.     linklist<int,"TEST"> LL;
  26.     LL.msg();
  27. }
  28.  
  29. I found a variety of things that worked under g++2.7.2 and SGI CC, nothing
  30. for BC++4.0.  Any ideas.
  31.  
  32. ERic
  33.